package com.iweb.mapper;

import com.iweb.model.Game;
import com.iweb.model.OrderG;
import com.iweb.model.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    //根据id查询user
    User selectById(Integer userId);

    User selectByAccount(String userAccount);

    List<Game> getWishList(Integer userId);

    void insertUser(User user);

    List<User> selectUser();

    void updateUserState(User user);

    List<OrderG> selectUserGame(Integer userId);

    void updateUserById(User user);

    void deleteWish(Map<String, Integer> map);

    void insertWish(Map<String, Integer> map);

    Integer selectWishId(Map<String, Integer> map);

}
